import QtQuick 2.0
import QtQuick.Controls 2.3
import QtQuick.Layouts 1.3
import "LCD"


Page{
    id:root
    title: "Button"

    StackView{
        id:stackV
        anchors.fill: parent
        initialItem: "LCD/example_billboard.qml"
    }

    function replaceView(source){
        stackV.replace(stackV.currentItem,source)
    }

    Action {
        id: _billboard
        text: qsTr("Message")
        icon.source: "qrc:/image/icons/error.svg"
        onTriggered: replaceView("LCD/example_billboard.qml")
    }

    Action {
        id: _hello
        text: qsTr("Deletege")
        icon.source: "qrc:/image/icons/error.svg"
        onTriggered: replaceView("LCD/example_hello.qml")
    }
    Action {
        id: _combo
        text: qsTr("PopInd")
        icon.source: "qrc:/image/icons/error.svg"
        onTriggered: replaceView("LCD/example_combo.qml")
    }

    footer:ToolBar {
        Row {
            anchors.fill: parent
            spacing: 10
            ToolButton { action: _billboard }
            ToolButton { action: _hello }
            ToolButton { action: _combo }
        }
    }





}
